/**
 * 
 */
package com.feib.stms.dao.jdbc.rowmapper;

import org.springframework.jdbc.core.RowMapper;

import com.feib.stms.dao.GroupDao;
import com.feib.stms.model.Group;
import com.feib.stms.util.SpringContextUtil;

/**
 * @author Jimmy Liu
 *
 */
public class GroupRowMapper extends BaseRowMapper<Group> implements RowMapper<Group>
{
	private static final long serialVersionUID = 491078615677692312L;
	
	private GroupDao groupDao;
	
	public GroupRowMapper() {
		super(Group.class);
	}
	
	public GroupRowMapper(GroupDao groupDao)
	{
		super(Group.class);
		this.groupDao = groupDao;
		
		if (null == this.groupDao )
		{
			groupDao = (GroupDao)SpringContextUtil.getBean("groupDao");
		}
	}
	
}
